﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/// <summary>
/// 鞋子注灵
/// </summary>
[Serializable]
public class ZhuLingShoe
{
    /// <summary>
    /// 注灵等级
    /// </summary>
    public int level;
    /// <summary>
    /// 法防加成
    /// </summary>
    public int rgs;
    /// <summary>
    /// 暴击加成   
    /// </summary>
    public int crt;
    /// <summary>
    /// 消耗道具id
    /// </summary>
    public int use_item_id;
    /// <summary>
    /// 消耗数量
    /// </summary>
    public int use_item_count;
}

public class ZhuLingShoeMgr
{
    public static Dictionary<long, ZhuLingShoe> Dict { get; private set; }

    public static void Load()
    {
        List<ZhuLingShoe> initRoles = StaticDataReader.LoadJsonFromFile<ZhuLingShoe>("static_zhuling_shoe");
        if (initRoles != null)
        {
            Dict = new Dictionary<long, ZhuLingShoe>(initRoles.Count);
            for(int i=0; i<initRoles.Count; i++)
            {
                Dict.Add(initRoles[i].level, initRoles[i]);
            }
        }
        else
        {
            Dict = new Dictionary<long, ZhuLingShoe>();
        }
    }
}
